
public class AnimalTest {
    public static void main(String[] args) {
        // 创建一个动物对象
        Animal animal = new Animal("Lion", "Large", "Fierce");
        System.out.println("Animal Name: " + animal.getName());
        System.out.println("Animal Size: " + animal.getSize());
        System.out.println("Animal Quality: " + animal.getQuality());
        animal.move(); // 输出动物可以跑或走

        // 创建一个鸟类对象
        Bird bird = new Bird("Eagle", "Medium", "Strong", "Beautiful", "Broad");
        System.out.println("Bird Name: " + bird.getName());
        System.out.println("Bird Size: " + bird.getSize());
        System.out.println("Bird Quality: " + bird.getQuality());
        System.out.println("Bird Feathers: " + bird.getFeathers());
        System.out.println("Bird Wings: " + bird.getWings());
        bird.move(); // 输出鸟类可以跑或走，并可以飞翔
    }
}
